<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsf/composite/componentes"
	template="./../modelo/designer.xhtml">
    <ui:define name="conteudo">
    
    	<f:metadata>
            <f:viewParam name="id" value="#{presenteEditarMB.id}"/>
        </f:metadata>
    
    	<h2>Editar Presente</h2>
    	<h:form id="formEditar">
    			<h:inputHidden value="#{presenteEditarMB.objeto.id}"/> 
    			<h:outputLabel value="Nome">
    				<h:inputText size="50" value="#{presenteEditarMB.objeto.nome}"/>
    			</h:outputLabel>
		    	<br/><br/><br/><br/>
		    	<h:panelGrid columns="3">
					<h:commandLink styleClass="botao" value="Salvar" action="#{presenteEditarMB.salvar}"/>
					<h:commandLink styleClass="botao" value="Voltar" action="/presente/listarUI.faces?faces-redirect=true"/>
					<h:commandLink styleClass="botao" value="Remover" action="#{presenteEditarMB.remover}"/>
				</h:panelGrid>
	    </h:form>    	
    </ui:define>
</ui:composition>
